var status = -1;

function action(d, c, b) {
    if (d === 1) {
        status++
    } else {
        status--
    }
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.resetMap(cm.getMapId());
            cm.fieldEffect_ScreenMsg(false, "phantom/mapname2");
            cm.spawnMob(9300498, -2050, -1294);
            cm.spawnMob(9300507, -2420, -1054);
            cm.spawnMob(9300498, -2070, -772);
            cm.spawnMob(9300507, -2070, -491);
            cm.spawnMob(9300498, -2430, -210);
            cm.onScriptMessage_显示教程引导图片(["UI/tutorial/phantom/0/0"])
        } else {
            if (status === a++) {
                cm.onScriptMessage_显示教程引导图片(["UI/tutorial/phantom/1/0"])
            } else {
                if (status === a++) {
                    cm.onScriptMessage_显示教程引导图片(["UI/tutorial/phantom/2/0"])
                } else {
                    if (status === a++) {
                        cm.onScriptMessage_显示教程引导图片(["UI/tutorial/phantom/3/0"])
                    } else {
                        if (status === a++) {
                            cm.onScriptMessage_显示教程引导图片(["UI/tutorial/phantom/4/0"])
                        } else {
                            if (status === a++) {
                                cm.dispose()
                            }
                        }
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};